package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tbl_product_card_code")
public class ProductCardCode implements Serializable {
    private static final long serialVersionUID = 1488879875730632217L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "产品id")
    private Integer productId;
    @ApiModelProperty(value = "编码")
    private String collectionCode;
    @ApiModelProperty(value = "藏品hash")
    private String transactionHash;
    @ApiModelProperty(value = "激活状态 0未激活；1已激活")
    private Integer activeStatus;
    private Date createTime;
    private Integer nftId;

    public ProductCardCode() {
    }

    public ProductCardCode(Integer productId, String collectionCode, String transactionHash, Integer activeStatus, Date createTime, Integer nftId) {
        this.productId = productId;
        this.collectionCode = collectionCode;
        this.transactionHash = transactionHash;
        this.activeStatus = activeStatus;
        this.createTime = createTime;
        this.nftId = nftId;
    }
}
